package com.fable.dal.mapper;

import com.fable.dal.model.TalentDO;
import com.fable.dal.model.TalentQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for Talent.
 */
public interface TalentMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(TalentQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(TalentQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(TalentDO record);

    /**
     * insert selective.
     */
    int insertSelective(TalentDO record);

    /**
     * select by query condition.
     */
    List<TalentDO> selectByQuery(TalentQuery query);

    /**
     * select by primary key.
     */
    TalentDO selectByPrimaryKey(Integer id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") TalentDO record, @Param("query") TalentQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") TalentDO record, @Param("query") TalentQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(TalentDO record);
}